package com.example.demo.service;

import com.example.demo.entity.User;
import com.example.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserService {

    @Autowired
    UserMapper userMapper;

    public User Sel(String id) {
        return userMapper.Sel(id);
    }

    public List<User> queryList() {
        return userMapper.queryList();
    }

    public void addOne(Map map) {
        userMapper.addOne(map);
    }

    public int update(User user) {
        return userMapper.update(user);
    }
    public int del(int id){
        return userMapper.del(id);
    }

}
